package com.nmc.core.dto.search;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

public class SearchCriteria {
	
	private Integer id = null;
	private Integer status = null;
	
	public void addRestrictions(Criteria criteria) {
        if(status != null && status.intValue() != -1) {
        	criteria.add(Restrictions.eq("status",status));
        }
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	

}
